Fix function cannot be exported in module.