Fix rules panel.