fixed for plugins
fixed bug
fixed bug
some fixes for plugins