fixed invalid job id bug for tasks