Fixes pipe bug.

Issue https://github.com/tgstation/-tg-station/issues/1669 and its duplicate https://github.com/tgstation/-tg-station/issues/1099

(Fixes #1669 Fixes #1099)