fix the crash.