Fix #277. Ensure that duplicate shards won't be created for a given time.