Fix erroneous error messages when running gang scheduling.