Fixed bug in ShareProfilesViewController.