Fixed bug where rule would not be deselected correctly.