Why conditionality to enable is not working?