fixed math problem