bug fix, return proto tag instead index