fixed bug in adding new routes