Need Help with LED Binary Counter

I couldn't see any problem with the code, so I downloaded it and wired up five LEDs ... works perfectly.

You must have hardware gremlins...