fixed proxy check