fixed issue with http request