fixed an uninitiallize pointer