Question about dot matrix

Did it work 100% before the change?

EDIT: you changed the sketch since my original reply! You made a correction from "(matrix)" to "(matrix [ i ])". I wondered if that was an error. Did you make the corresponding change in my suggested version?