Fix bugs in tabs.dart
Fix tabs.dart and test_tabs.dart