fixed the finalize path