[OE-3048] fixed erod calculation