Working bugfix for gl strangeness