fixed plugin errors