fix a wrong check on a variable