Fixed a stupid (and severe) bug.