Fix seeking in file