Fixed a serious bug.