Fix bugs in select sales order scripts
Show blank line under last system message