Bug fix to getPreferredSGP found in testing