Fix rule validation