Fixed bad parsing of application name