Fixed a debug-induced bug.