Get the right rule in Categorized and Graduated