fix bug with current page