prevent flickering when select box opened