Arduino Nano V3 only runs sketch correctly after hitting reset or starting serial monitor

All tried, USB from PC, works only after reset or openning serial monitor.

12V 1A to the vin pins same situation.