Fix exponent check