fixed bug in routes