fix main_app issue