Fix bad logic.