fixes protobuf unpack