What the hell was I thinking when I introduced this bug?