Fixed several bugs with the repair command