Fix remove old jobs bugs.
Previous CL can't run correctly.