fix restore process, wrong paths to files and pdf's