Fixed bug with overlay window