fixed fps bug