Fixes problem in routes