Fixed a bug that causes a crash.