Fixing math error.