Fix issue with loading plugins