Update the correct variable