fixes using an assignment as a condition