Fix bug that host ast node not freed