fix crash due to variable rename