fix some issues in free-ids and datatype