compression bug fixes