Fix compression bug