Fixed bug related to invisible controls.