Fixes a bug with default route parameters