fixed another bug in foreach pipeline thanks to visualization system