Fix bugs for header and user_page.