fix window smoothing