fixed pernicious node index bug