glad: fixed type parsing