fixing bug with protobuf size