Fixing selectmenu initialization after resize