small bug fix in smoothin