fix bug in delayed_job#restart