just corrected a wrong usage of a variable