Fixed bugs with division and exponentiation