fix id set when persisting notes