fix flickering when resizing