fix bug changing page from menu.