Fixed a bug in the debug stuff. Oh the irony.