fix node ref hook