fix forEach for Chrome