ALL PINS ARE HIGH

all pins should be low at starting

Not necessarily. At starting they are undefined.