fix the dpkg check