Fixed fast_exp