7 segment counter

For some reason low lights up the segments

Probably because your display is a common anode device, with the anode connected to +5V, and the segments connected to output pins.
When the pins are LOW, they sink current through the segments.
A common cathode device would be connected with the cathode to 0V.