fix query theme_manager