bug fixing, ignore invalid node id