[bug fix] a bug that node becomes null in some cases is fixed