fixed bug where select box would disappear