fix plugin model