fix uninitialized class variable error.