Fixed projection.to_mat4 checks