If the number of entries is not the same, we should either add or remove entries. As I'm lazy, I usually clear and reinsert entries. Might not be the best solution though.