Add check for spec index vector