file offset fix