Fix exports var name colission and global vars