Fix registered directive name in registerDirective