Fixed framerate issue.