Fixed errors related to HTTP request