Fixed the LED matrix code for inversed matrices