window resize/move bug fixed