fix name to id