# Deleted variable bug

**URL:** https://forum.makecode.com/t/deleted-variable-bug/2201
**Category:** PXT
**Created:** [May 23, 2020, 9:06pm UTC](https://forum.makecode.com/t/deleted-variable-bug/2201 "2020-05-23T21:06:19Z")
**Posts on this page:** 2
**Page:** 1

<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: [May 23, 2020, 9:06pm UTC](https://forum.makecode.com/t/deleted-variable-bug/2201/1 "2020-05-23T21:06:19Z")

</div>

![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/1X/02e4a2ac5982faaa07c766612c025b0d4e43dd90.png)  
I think this would be considered a editor bug, because when you select one of the pull down select a variable buttons, the attached blocks are stuck to your cursor.

Steps to reproduce:

1. Drag out `for element value of list` block
2. Delete variable `list`
3. Click on `list` in the `for element value of list` block. The blocks attached will now get stuck to your cursor. Reload usually fixes it.

---

<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: [May 23, 2020, 9:43pm UTC](https://forum.makecode.com/t/deleted-variable-bug/2201/2 "2020-05-23T21:43:19Z")

</div>

I believe this one’s fixed in /beta ~

But yes, when a block sticks to the cursor that typically indicates an unhandled exception in blockly, and reloading typically fixes it.
