Oops. Why there's a bullet in my foot! AND there's a gun in my hand! Sorry to bother you, I did it to myself. Found the problem by trying to boil down a big, complicated program into the small test cases you requested, so I guess you did help fix the problem, even though it was not caused by you.