treetable: singelton bugs fixed