Fix profile page loading bug