Fix logic of getting application name

Version:1.3.
- Fix logic of getting application name.