Fix deprecation warning for function(fun/a)