74HC595N control solenoid - arduino startup problem

Tie the OE pin to the inactive level, using a resistor (1-10k). Then apply the active level from an Arduino output pin, once everything is set up properly.