fixed exponent bug