fix apt-hist