fix seek error