bug fix

bug fix for :java.lang.ArithmeticException: divide by zero
format fps