fix call to GlobalData getInstance before ready