fix crash bug!!!