[OE-2557] fixed definition of wrap()