Fix reference to variable