diff --git a/src/graphics/components/TabbedComponent.cpp b/src/graphics/components/TabbedComponent.cpp
index 015c573a6b1ce0c0777db81cf7d392ddef84bca7..de7c7d08a14d3465f6631aff57ad7ce6504b1fef 100644
--- a/src/graphics/components/TabbedComponent.cpp
+++ b/src/graphics/components/TabbedComponent.cpp
@@ -354,7 +354,7 @@ void TabbedComponent::selectTab(std::shared_ptr<Tab> tab) {
 void TabbedComponent::layoutTab(std::vector<std::shared_ptr<Tab>>::iterator tab) {
     std::cout << "TabbedComponent::layoutTab - id: " << tab->get()->id << std::endl;
     // find text
-    TextComponent *textComponent = dynamic_cast<TextComponent*>(tab->get()->titleBox.get());
+    TextComponent *textComponent = tab->get()->titleBox.get();
     if (!textComponent) {
         std::cout << "TabbedComponent::loadDomIntoTab - titleBox isn't a TextComponent" << std::endl;
         return;
diff --git a/src/graphics/components/TabbedComponent.h b/src/graphics/components/TabbedComponent.h
index b9404f3666f8f6f8f714ab32e72b555c9fb73c13..f5b5416354113365b87f6aa2de3830e8377194cb 100644
--- a/src/graphics/components/TabbedComponent.h
+++ b/src/graphics/components/TabbedComponent.h
@@ -53,15 +53,15 @@ public:
     // was DocumentComponent but generalized to be more general (and compatible with Tab)
     std::shared_ptr<Component> documentComponent = nullptr;
     
-    int tabAddColor = 0xF0F0F0FF;
-    int tabAddHoverColor = 0x008888FF;
-    int tabInactiveColor = 0x808080FF;
-    int tabHoverColor = 0x008888FF;
-    int tabActiveColor = 0x00FFFFFF;
-    int tabTextColor = 0x000000FF;
-    int tabTextHoverColor = 0x008888FF;
-    int tabCloseColor = 0x222222FF;
-    int tabCloseHoverColor = 0x008888FF;
+    unsigned int tabAddColor = 0xF0F0F0FF;
+    unsigned int tabAddHoverColor = 0x008888FF;
+    unsigned int tabInactiveColor = 0x808080FF;
+    unsigned int tabHoverColor = 0x008888FF;
+    unsigned int tabActiveColor = 0x00FFFFFF;
+    unsigned int tabTextColor = 0x000000FF;
+    unsigned int tabTextHoverColor = 0x008888FF;
+    unsigned int tabCloseColor = 0x222222FF;
+    unsigned int tabCloseHoverColor = 0x008888FF;
 };
 
 #endif