Fix overflow on decrementing ulong.