Fix problem with invisible parent element.