solve some building tree bug, more test case pass