fixing route bugs