Fixed background issue when resizing