How to deal with preparing automatic repair