Fixing plugin error on startup