Fix some differences from glm I found