Fix #170, compression was not working some times