Minor fix in the plugin logic.