fix proxy has not define global