broken bug in matrix transformation