js bug resolved in tree view