Fixed silly bug with insert count