fix plugin register