repaired problem in model