[Modified] fix get_dict