Fixed null end date in background jobs