fixed math problems