Fixed deprecate forEach method (OMS-511)