[FIX] fix conditions of remove duplicate

Merged Leandro Martinek requested to merge 7.0-fix_code into 7.0-stage

Merge request reports