fix in repair model generator