fix fast_mypow