Fixed offsets when writing to the end of the array