Adding name as default id if id not set