fixed profile page redirect bug