fixed uninitialized pointer