fix bug in show name variation logic