Fixed a crash.