fixed infinite for loop issue but vnode ref count issue still persists