fixes relating to pending jobs