Fix error during the plugin's reload