added repair function for broken repository