Fix bad logic test.