fix fps computation