fix broken directives