fix the potential use of an uninitialized variable