Fix broken condition