[!] Fixed bug when resizing window (from Salvy)