Fixed module export to avoid undefine