fix bug with cascading themes