model plugin fixed