fix proxy check