fixed fps diviosn by zero