Fix default gateway bug