Fixed bug in default route detection