fix a bug with hex shard generation