fixing route constraints