hideOverlay method has been improved.