Fixed a horrible bug