fixed fps calculation