Resolve bug with restoring jobs from queued state.