fixed asyncronous loading issue with jstree