fix a crash bug

fix a crash bug