fixed initialization of field class static variables in mainactivity