bugfix in gl-loop snippet