Fixed compileTheme method