fix sharding issue