Fix conditional logic.