fixed bug with loading theme twice