help with - 2 digit 7 segment display and 2 74hc595

No you have a display working at the moment do you not?
That is why you are seeing some numbers, you say you see the counts:-

Now it counts 0 1 2 3...9 00 11 22 33 44

This has nothing to do with driving the display as a matrix. It has to do with what numbers you are telling it to display.
You have been told how to go about finding this, you have even been pointed to a possible mistake in the code.

Now try and find that error. If you can't then post the code where you have attempted to fix it. Say what you see on the display and say what you expect.