Fix infinity in math