Minor fix for finalize.