fixed a bug with an exponent