Fixes apt bugs