Fixed a Crash Bug

Fixed a Crash Bug