Fixed a big bug.