Fix more bad code that referenced wrong text variable