fix autodiff call