Fix order of directives