Fix issue with constraints in routes