Working on bugs in duplication removal