Fixed undefined value errors for _val_selected and _val_int
0.07