fix showing done msg when maxPage option is used