fix Authentication in directives