fix proxy handler