Infinite routing loop fix.