fix exponent parsing