fix issue with createEach