patch node index bug