Improve visibility reliability, fixes selection issues in IE