# \[BUG\]: binding returning a dict with string keys representing a number cause KeyError in designer

**URL:** <https://forum.inductiveautomation.com/t/bug-binding-returning-a-dict-with-string-keys-representing-a-number-cause-keyerror-in-designer/74619>\
**Category:** Ignition\
**Created:** [June 6, 2023, 8:48am UTC](https://forum.inductiveautomation.com/t/bug-binding-returning-a-dict-with-string-keys-representing-a-number-cause-keyerror-in-designer/74619 "2023-06-06T08:48:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![r.p](https://avatars.discourse-cdn.com/v4/letter/r/71e660/32.png) [@r.p](https://forum.inductiveautomation.com/u/r.p)\
**Post date:** [June 6, 2023, 8:48am UTC](https://forum.inductiveautomation.com/t/bug-binding-returning-a-dict-with-string-keys-representing-a-number-cause-keyerror-in-designer/74619/1 "2023-06-06T08:48:13Z")

</div>

If you create a binding which returns a dictionary and some keys are strings that represent a number they are interpreted as a number which is not a valid key for the dict.  
See screenshot below (0 is a string "0" but is interpreted nevertheless as the number 0).  
At the moment only solution is to prepend a "\_0" to the keys.

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/d/1d58506de36456f3c677a7230b9f80d459a5d782.png)

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/c/5cea954e6f8fad1e596aed11aae93f988e8f9489.png)
