Set next_id properly when restoring recordings