Trying to fix the crash.