fix variable uninitialized warnings