Fix rule validation errors