even uglier hack to stabilize smoothing