Once you have rewired your circuit, check operation of Output Pin 0 ( leg 21 ) to ensure it can go high and low. Connecting the power this way may have dameged the on-chip output driver. Hopefully not, but best to mark the chip as potentially damaged lest you run into a problem with Output Pin 0 in the future - if it hasn't damaged it, it could have weakened it and may one day fail or not work as expected which could get quite frustrating.