Fix pipes bug