window resize bug fixed probably