minor fix for condition parsing