Fixed null pointer in profile page.