Fixed pipe bug