Edit_selectboxes bug fix