Fixed a crash reason