try to fix a crash bug