fixed the bug that makes pipe files with the same name.