fix PC-to-gateway problem