fix another bug due to variable rename