Fix htp request errors