Fix pbs queue check