fixed error handle on forward proxy