Fixed bug whereby the profile page did not show the profile of the user identified by the URL