fix amf smoothing