fixed list_jobs method