fix index error in Levin_u; now uses expected number of terms