fixed bug in route-link creation