fix PBSPro bug discovered with tests