fix bugs to fetch app_name