Fixes a minor bug with pipe laying