Cleaning up minor bug fix in updateSGP