fixed issues with plugins.