fixed bug in analysis tbl_to_dict