fix dictionary data type bug