Fix weird flash of dropdown