There was also some undefined behavior when an entry was deleted, this seems to originate from the original code.