fix for update model method