fix 'required field not set' protobuf error