fixed foreachn throwing unknown exception during seq execution