fixed a bug going to the profile page from the edit profile page