fix stupid bug: should call 'next' after 'gotoMark'