fix generator next()'s param position