Fixes compression bugs