fix compress consume bug