Fixing slight bug in outputSGP RLI mode