fix for uninitialized var, and clobbering of battle wn8