[fix] bad reference to a variable