Fixed small bug in OpenGL init