Fix 'used uninitialized' warnings