Fixed variable reassignment error

Change-Id: Iefc28eaf5315e4465853b38bb6e1d26f755d8deb