Remove Duplicate flags