fix plugin so it does not throw errors