fixed bug in routing helpers