Fix legacy plugin.