Fixed weird blue backgrounds when resizing the window