remove duplicates from revert
Fix