Improve select options closing