fixed dictionary looping bug