Fix compress bug

Fix compress_threshold bug