repair in entity file