Fix syntax error in condition