fix bug: topMax and topSkip not work.
refactor.
refactor