Fixed doChangeVar