fix glup errors