Fixed a nasty integer underflow in the shredder.