small fixes in the repair model generator