fixed glm compile bug