fixed assertion in smoothDownsample