..F....... [ZBX-7399] fixed the "clear" problem in a way that is more compatible with the remaining code