fix compress bug