Fix a bug when inserting a name less node