repair some models