How can it work when the two inputs, according to your schematic, are wired to two different comparators? What did you change CMCON to to make it work?