fix TreeAttachSystem bug