Fixing gl modification