Fixed incorrect inverse in routing equation