Fixes the gateway for private and public subnets