tray class matrix fix