After any reset the Pins will be set as input - for you, they will be tristate!
So, add the pull-down-resistor an write a good programm !