fixed bug for sharded doc stores