Fix pipe undefined return value