invalidate window after animation