fixed app crash issue