Fixed bug in routing with zeros.