Make compression work properly