fix bug in num_enqueued_jobs refresh