fix statement mod foreach