fix bug with delete job