Fixed a NPE in Pipes