# Flip-n-times bug

**URL:** <https://forum.xod.io/t/flip-n-times-bug/3164>\
**Category:** Uncategorized\
**Created:** [December 31, 2019, 6:59am UTC](https://forum.xod.io/t/flip-n-times-bug/3164 "2019-12-31T06:59:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![julian](https://avatars.discourse-cdn.com/v4/letter/j/74df32/32.png) [@julian](https://forum.xod.io/u/julian)\
**Post date:** [December 31, 2019, 6:59am UTC](https://forum.xod.io/t/flip-n-times-bug/3164/1 "2019-12-31T06:59:05Z")

</div>

I think I have found a bug

![flip-n-times bug](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/4/4b064e7412764295f4926be6224af68aa5948dbc.png)

Even though ‘N’ is set to zero the output turns on once each time the clock pulses the node. I am using pulses of the LED to indicate a number, and if that number is zero it shows as 1. Which is no good!

---

<div class="post-metadata">

**Author:** ![julian](https://avatars.discourse-cdn.com/v4/letter/j/74df32/32.png) [@julian](https://forum.xod.io/u/julian)\
**Post date:** [December 31, 2019, 11:02pm UTC](https://forum.xod.io/t/flip-n-times-bug/3164/2 "2019-12-31T23:02:45Z")

</div>

I have fixed it by just adding a gate that disables the output when N is zero. It seems a pretty basic way of doing it, but anyway, can this (or an alternative) be added to official Flip-n-times node? (I can put up a new node but then we’d have multiple, very similar nodes - not sure that’s the best way.)
