fix loading theme bugs.