fix the background job, and can kill jobs