fix `requireFn`