fixed export to global scope

fixed export to global scope