solve bugs in creating binary tree upon activation