fixed problem with restoring of packages