Fixed a crash that would cause a crash.