fix: Function.series should not call callback multiple times