fixed the problem with class GlobalData