removing redundant uninitialized variable access

found some minor issues when using 
th -g