Get selected item from dropdown

I am trying to get the selected item number/text from dropdown, but I always get the wrong item in the code. The item number, and its text are match each other, but they are NOT what I selected !
Here is what I did:
lv_obj_t * dd = = lv_dropdown_create(lv_scr_act());

lv_dropdown_set_options(dd, “One\n”

lv_obj_add_event_cb(dd, event_handler, LV_EVENT_VALUE_CHANGED, NULL);

Then in the event handler:
lv_event_code_t code = lv_event_get_code(e);
lv_obj_t * dropdown = lv_event_get_target(e);
uint16_t x = lv_dropdown_get_selected(dd);// get as integer
char buf[64];
lv_dropdown_get_selected_str(dropdown, buf, sizeof(buf));// get as text
Did I miss something ?
PS: I am using versin 8.1