fix window resize
jquery bug