Fix when re-installing an existing plugin.