NodeMcu V3 CH340 Lua not starting w GPIO16 connected w RST

I have connected GPOIO16 with RST to enable wakeup from deep sleep. This works fine, except the board requires a manual reset the first time after power off or uploading new code. This happens every time. What can I do to avoid this?