fixed bug in dict_str