lag_read_prob_header: fix out of array access