repair entity file