fixed http method problem