Fix directive validations