Fixed a really terrible bug