Fix route definitions