fixed bug in setTheme method