fixed selector.js and tree.js