Fix assert when header version is 0.