fixed getTheme call function