fix Edit model