Fix example code with illegal usage of the API

Urg... was wondering why so many people were reporting that the routing feature does not work.