fixed warning for uninitialized pointer