Fix incorrect variable name reference