Fixed issue with calculating start shard number for SM instances