fix error out when pprint(pprint) in some occasion