fix line filling for small windows