fix bug for getting node data