A couple slight changes for compatibility and to not allow repo to be erased.