This is a bug I encountered, I set up the comparator like the image below. When I add the input i get 1 tick pulse where the comparator isn't subtracting the signal. But the next tick (and every tick after that) is subtracting as it should. Until a new input is sent.
Duplicate of MC-6032.