Fixed bug where profile link redirects to other page