Bug fixes in RLI outputSGP