>>16769963
You need to initialize the camel queue before you begin fulling it. Partial camel bits have way of slipping past all the off-by-one error accumulators.
You theory is solid, but implementation is always different and more nuanced.