Fix compress bug