remove duplicated flag