fixed protobuf serialization
Merge pull request #8 from smutty/master

fixed protobuf serialization