[OE-2746] erod calculation bugfix