Fixed GenerateNiceName.