fix element length/seek error.