Fix duplicate rules field