fix uninitialized pointer variables in some classes