fix proxy proto check bug