fix proxy generation