Be more careful when changing the name and target IP.
We must not change them before removale and change completely
before reinsertion to ensure that the indexes don't become
corrupted.