fix another assignment in condition warning