fixed app crash bug