fix bug of launching app