Fixed minor crash bug.