Corrected problems with loading plugins