Let's Make Robots!

7 segment display

74hc595 with 7 segment dispaly not working right

For some reason I can't get my 7 segment dispaly and 74hc595 shift register to work right on my arduino.  I can get the segment to turn on one at a time.  When I try to do numbers it just doesn't work right?  I have clock pin, and data pin to the the arduino. It will try to light up my numbers but will be missing some segments. It will also skip numbers completely for example try to show 1, 4, and 6 and skip the rest. I tried putting a 0.1 cap on the latch also.  I have 220 resister running from each pin of the display to the shift register.  Here my code: