Fixed a bug in application name generation