fix rest data type bug