fixed dictionary bug