fix some bug for plugin

fix some bug for plugin