Strange filtering issue

I’ve created a multi-select list based filter for a Treetable (level1). It works perfectly with whichever items are selected; but there seems to be a strange bug if I load new data into the table.

If I do a treetable.clearAll() and then treetable.parse(newdata), and then use a treetable.filter() function, then I this error:

Uncaught TypeError: Cannot set property ‘$count’ of undefined webix_debug.js:11021

webix.TreeStore._filter_reset webix_debug.js:11021

webix.DataStore.filter webix_debug.js:9264

(anonymous function) webix_debug.js:9312

applyL1Filters ops.js:21

(anonymous function) webix_debug.js:6894

webix.EventSystem.callEvent webix_debug.js:522

(anonymous function) webix_debug.js:898

applyL1Filters is the function which calls treetable.filter()

What could be going on that only on loading new data, this problem occurs?