Fix label index and path.