Fixed IE bug in directives