fix #3478

it correct work with integer keys of list
Merge pull request #3479 from lynicidn/patch-4

fix #3478