fix one crash bug