Fixedbug in smooth estimator