fix a calculation of fAverageFrameRate