init variable right before using it

Change-Id: I8cea540ecdb00401d72c9a09e153868c83513145