Fix bug in routes