fixed error calculation for glm glmerr