Fix usage of unknown variables

Hi,

I found 3 files, uses variables that did not exist and I fixed.