bugfix: handle circular routes correctly
Authored by: mrieser 2010-01-14
Parent: [r10000]
Child: [r10002]