fixed a dict bug