Fixed the plugin hanging under windows