fixed problem with file position for archive