fix .subbuf when overlapping the end