GL compatibility fix