Fix pipe order