Fixed issue of close button on overlayed window.