Redstone comparator getting stuck powered on

I am trying to make dialogue for something I'm making and the system I'm using has a comparator in it, but the comparator keeps getting stuck even when the command block is inactive with no redstone to power it. I've had this problem for a very long time now which is why I hardly use comparators for my command block creations.