fix bug with short name generation for people without middle name