fix compression problem