Fixed minor bug in plugins.