Fixed FPS counter to be more accurate.