Fixed a bug when accessing user profiles from home.php