fixed error with proxy requests