Fix callback returning rest as first parameter