Fixed priority issue between directives