fix bug: actually set the id and name based on the data