bugfix with protobuf