fixed bug where some routes were incorrectly recognized