temporary fix on window resize