Fix generic function callback argument order

The original function name should be the first entry.