fix error with sizeof(name)