Fix accidental assignment in if condition.