fix insert data by type