fix: seek to the end of the file