Bug fix in previous commit to updateSGP