Fixed viewprofile redirect bug