Ticket #2699. Fixing a bug for reading SGE files and incorrect arguments.