Fix if0 logic.