remove duplicate rules