debounce with seven segment and shift register not lighting correct segments.

Did you write your own debounce routine?
There are tutorials for that.