Fixed improper communication between tabs and tab directives