Fix a bug of loading the theme functions