implemented GLBackend fix to issue/658