Fixed global loading method for plugins