Fix a crash when going from the directories to the new profile page