Fixed a terribly stupid bug