fixed renewing dict bug