fixed null ptr except details->visiting profile page