fix seek to end