fix gl matrix bug