Hi. Also I would recommend to flash the kernel as the very last. So, to flash havoc+twrp, now reboot to recovery (which changes slots), now gapps+magisk + kernel, now reboot to system and enjoy.
In my experience it is very important to reboot to recovery after havoc+twrp to flash the rest on...