Fixed bug in routing with snapshots