fixed bug in route