fix a potential use of uninitialized variable