Fix bug in condition assignment