fix bug to set name