bugfix: do not remove the key from deque when delete key from dict