debug incorrect condition