Fix for loading plugins