Fix restoring active jobs