Fixed a major bug.