fixed math case