fix protobuf parsing problem