uninitialized variable fix