bug about flush Dict