fixing plugin errors