Fix possibly uninitialized use of variables