Fix route parsing issue