Fixed FPS bug