fix OpenGL transform matrix