Fix some things in the plugin.