NXP-14010: fix typo and handle number of shards and replicas