build tree error fix