fix seek to tail logic.