tree.js fix