Fix bug dealing with spaces in exports