FPS calculation bug fix