minor bug fix : window resize