fix app crash bug