See this code for the problem (just a modified tree_list_demo.exw).
I'm getting 0 for items 2 and 3, when they should not be 0.