fixed dictionary and phrases parameter in visualizer.py