Fixed problem with pipe where unterminated array acted as being longer than it really was