Fix parseCondition infinite loop