compression bug fix