Fixing the routing code.