fix dump dict bug