Fixed a bug in res_vnode(still a long way to go)