fix bug with default route
better version of the same fix