Fix evaluation of negative exponents.