fixed bug when init trivial without theme