74HC595N control solenoid - arduino startup problem

gunsha:
i think i'm already doing that on the breadboard, i have 10k between OE and D4, and setting that high at the end of the sketch

The pulldown resistor goes to Gnd, not to the output pin.