fix dict in apt lib