Fixed exception due to invisibility of dropdown.