fix a bug recently introduced in run_hive_jobs