Bug fix in get PreferredSGP