Problem with a collapsible listview

Problem with a collapsible listview

Hi guys, I had a problem while trying to port an app from 1.3 to 1.4 and I can't find the way to fix it, I hope you can help me.

The problem is about trying to put a collapsible listview like this one http://demos.jquerymobile.com/1.4.0/listview/#Collapsiblelistview dynamically. I read the data from a json file, then generate an unordered list and then refresh the listview, it worked fine in 1.3, but now the search filter just doesn't appear at the top of the list like it used to do (it does if I put the list in plain text like in the demo example), here's the code.

http://jsfiddle.net/m9WUT/

Thank you guys