Why conditions are not hiding certain fields?