refactor code: fix update znode info bug