Fixed a bug/crash.