Fix the variable used in the check