fixed bug when peer uses other peer's IP