Fixed smoothing bug (?).