fix order of arguments passed to add_route().