fix Pipe connection generation