avoid failure if no shard definition