Avoid crash for directives without graphic