Fixed variable name in condition