Bug fixes for outputSGP RLI edge cases
Update of outputSGP for RLI edge case