fixed an error while loading due to uninitialized pointers