Fixed glm matrix transforms.