Fixed the name change detection