Fixed a minor crash bug.