Fixed reloading plugins.