mlr: function fold invoked with 4 arguments; expected 3
