fixes #4162 Error trying to switch the tag repository