Fix to set_name working

It has a bug not to set vm name.