Fix to return a key when saving data via protocol buffers.