Fixing button group in directives