# \[SOLVED\]Couple Block Bugs?

**URL:** <https://forum.makecode.com/t/solved-couple-block-bugs/2549>\
**Category:** Help\
**Created:** [June 26, 2020, 10:10pm UTC](https://forum.makecode.com/t/solved-couple-block-bugs/2549 "2020-06-26T22:10:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![slimehunter](https://avatars.discourse-cdn.com/v4/letter/s/6a8cbe/32.png) [@slimehunter](https://forum.makecode.com/u/slimehunter)\
**Post date:** [June 26, 2020, 10:10pm UTC](https://forum.makecode.com/t/solved-couple-block-bugs/2549/1 "2020-06-26T22:10:06Z")

</div>

[SOLVED!]  
Hello,

I’m not sure if these are bugs or if the way I’m using the code blocks is not right.

[UPDATE: Fixed via adding an after block from comment below]

1. I cannot restart the countdown timer within the “on countdown end” block.

[UPDATE: fixed by changing the variable “day” to “myDay” since I guess this was due to the built-in/default JS variable of the same name]  
2. As a result of the above blocks, it also looks like the “change variable by X” block is not working as expected? When I call the splash with the day variable passed in it, the program doesn’t run. I get the “oops, please check your code for errors” message, and when I look in the JS it looks like this:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/6/6c3be8be58a55a55bf902bccae05d26a908562b4.png)

---

<div class="post-metadata">

**Author:** ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)\
**Post date:** [June 26, 2020, 10:57pm UTC](https://forum.makecode.com/t/solved-couple-block-bugs/2549/2 "2020-06-26T22:57:50Z")

</div>

> [@slimehunter](#):
>
> I cannot restart the countdown timer within the “on countdown end” block.

You cannot reschedule the countdown timer right after it ends. You must wait a bit.

I will try to find a particular extension that helps with this…

EDIT: You must use a `after x do` block in the awesome timers extension by Daryl. Original forum post link [here](https://forum.makecode.com/t/timers-extension-after-x-debounce-throttle-and-in-background/1925)

Here is the Github link:  
[https://github.com/darzu/arcade-timers](https://github.com/darzu/arcade-timers)

![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/1X/bbb4850be00e4ef9ab57524cd4a7058e12a90156.png)

---

<div class="post-metadata">

**Author:** ![slimehunter](https://avatars.discourse-cdn.com/v4/letter/s/6a8cbe/32.png) [@slimehunter](https://forum.makecode.com/u/slimehunter)\
**Post date:** [June 26, 2020, 11:09pm UTC](https://forum.makecode.com/t/solved-couple-block-bugs/2549/3 "2020-06-26T23:09:13Z")

</div>

Thanks for the quick response! 😃 That works.  
I also commented that I was inadvertently trying to write to a pre-existing default JS “day” variable.  
This thread can be closed.

---

<div class="post-metadata">

**Author:** ![jwunderl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jwunderl/32/5308_2.png) [@jwunderl](https://forum.makecode.com/u/jwunderl)\
**Post date:** [June 26, 2020, 11:30pm UTC](https://forum.makecode.com/t/solved-couple-block-bugs/2549/4 "2020-06-26T23:30:34Z")

</div>

re: starting a new countdown in an `on countdown end`, that’s a bug that’s been fixed in the next release (/ is fixed in beta), but yes, for now you have to run it separately.
