bug fix to compress script