fixes for failed sort, and failed proc jobs