Fixes bug in select options calculations on resize