Fixed GL callback errors