fix multiple fading on resize