Fixed a terrible bug.