Fix issue in name generator.