Fixed bug in router, now varCache is checked