Fix error caused by deleting default route