fix compress script bug