Fixed a bug in GLFW