Fixed a bug when loading as global function
Merge pull request #5 from amadanmath/master

Fixed a bug when loading as global function