fix call to GlobalData getInstance before ready
Merge pull request #15 from birarda/master

fix call to GlobalData getInstance before ready