fixed loadNpmPlugin scope undefined error