Fixing reference to variable