compress bug fix