Fixed minor OpenGL errors