Found some major bugs in mat4.