Fixes some more issues with decompression and compression