fix plugin def