Fixed restoring file (again)