more bug fixes for smoothing based inference