Fix rule editing.