Fix pipe connections