Corrects the load plugin function