fix error in default route handling