fixed the crash.