fix prev in manager.job_ended