Bug fix in updateSGP with call to visualizeSGP and outputSGP