fix a bug that wire goes out of routing region