Bug fix in outputSGP for RLI