Fix initialization from valnet error.