Fix new-line issue with directives