Fix broken conditional