Repositories: Some fixes to routes