fix dictionary toString bug