Fixed FPS calculation.