bugfix

only swap Pipe Type