Fix inconsistencies in the variable name

in the external training controller and views