fixing angular directives