fixes routes with params