fix for OpenGlLoop