fix compress error