fix in the repair model generator