Fix partial state info glitches in AND gates

Some GUI flickers occurred with previous implementation, related #1749