Recovered some bugs for http messages